package main

import (
	"fmt"
	"math"
	"math/cmplx"
)

// bool string
//(u)int int8 int16 int32 int64 unitptr

func tes() {
	var b1 bool
	var s1 string
	var i1 int
	var i8 int
	var i16 int
	var i32 int
	var i64 int
	var iptr uintptr
	var b2 byte
	var r1 rune
	var c64 complex64
	var c128 complex128
	fmt.Println(b1, s1, i1, i8, i16, i32, i64, iptr, b2, r1)
	fmt.Println(r1)
	fmt.Println(c64, c128)
}

func euler() {
	c := 3 + 4i
	fmt.Println(cmplx.Abs(c))
	fmt.Printf("%.3f\n", cmplx.Pow(math.E, 1i*math.Pi)+1)

}

func triangle() {
	var a, b int = 3, 4
	var c float64
	c = math.Sqrt(float64(a*a + b*b))
	fmt.Println(c)
}

func main() {
	fmt.Println("base test")
	tes()
	euler()
	triangle()
}
